package com.cykj.pos.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.cykj.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;
import java.util.Map;
import java.util.HashMap;
import java.math.BigDecimal;

/**
 * 临时积分对象 biz_timeout_integral
 *
 * @author weijianbo
 * @date 2021-05-07
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("biz_timeout_integral")
public class BizTimeoutIntegral implements Serializable {

    private static final long serialVersionUID=1L;


    /** 主键 */
    @TableId(value = "id")
    private Long id;

    /** 兑换机具人id */
    @Excel(name = "兑换机具人id")
    private Long merchId;

    /** 发放机具人id */
    @Excel(name = "发放机具人id")
    private Long parentId;

    /** 关联订单id */
    @Excel(name = "关联订单id")
    private String orderId;

    /** 创建时间 */
    private Date createTime;

    /** 是否超时（0未超时 1已超时 2已完成） */
    @Excel(name = "是否超时" , readConverterExp = "0=未超时,1=已超时,2=已完成")
    private Long timeout;

    /** 临时积分 */
    @Excel(name = "临时积分")
    private Long temporaryIntegral;

    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();
}
